gdk/wayland: Keep track of implicit grabs
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 12 May 2020 08:19:47 +0000 (10:19 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 12 May 2020 12:14:39 +0000 (14:14 +0200)
commit2bd8124b5d9d5f824744a7e00611a6231acbfd1c
treef71f27f7656ba9f3a8e34aa480e6698087834531
parent5e765eaac4d57fa6f0b3f10e906605ad9d223575
gdk/wayland: Keep track of implicit grabs

Tracking of those broke sometime along the gdk cleanups, so we
started missing some GDK_GRAB_BROKEN events from being emitted
(eg. after a button press/implicit grab triggers an active grab).

Implicit grabs are only added if there's no prior grab (either
implicit through other button presses, or explicit), in order to
keep accounting correct, make those prevail.
gdk/gdksurface.c